﻿<%@ Assembly Name="Microsoft.SharePoint.ApplicationPages, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c"%>

<%@ Page Language="C#" AutoEventWireup="true" DynamicMasterPageFile="~masterurl/default.master" Inherits="Slam.Administration.SLAMControlPanel, Slam, Version=2.1.0.0, Culture=neutral, PublicKeyToken=28f8d30936a98765" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormControl" Src="~/_controltemplates/InputFormControl.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="InputFormSection" Src="~/_controltemplates/InputFormSection.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBar" src="~/_controltemplates/ToolBar.ascx" %>
<%@ Register TagPrefix="wssuc" TagName="ToolBarButton" src="~/_controltemplates/ToolBarButton.ascx" %>
<%@ Register Tagprefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>
<%@ Register Tagprefix="asp" Namespace="System.Web.UI" Assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" %>
<%@ Import Namespace="Microsoft.SharePoint" %>
<%@ Assembly Name="Microsoft.Web.CommandUI, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PlaceHolderPageTitle" runat="server">
	<SharePoint:EncodedLiteral ID="PageTitle"
						Text="SLAM Control Panel"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server">
	<SharePoint:EncodedLiteral ID="TitleArea"
						Text="SLAM Control Panel"
						EncodeMethod="HtmlEncode" runat="server"/>
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="PlaceHolderPageDescription" runat="server">
	<div>The SLAM Control Provides functionality for viewing Diagnostics, managing Configuration and performing Activation tasks for SLAM.</div>
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderId="PlaceHolderMain" runat="server">
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
		<tr>
			<td ID=mngfieldToobar>
				<wssuc:ToolBar id="onetidNavNodesTB" runat="server">
					<Template_Buttons>
					  <wssuc:ToolBarButton runat="server"
									Text="Diagnostics"
									id="idDiagnosticsNode"
									ToolTip="SLAM Diagnostics Pages"
									NavigateUrl="Diagnostics.aspx"
									AccessKey="D" 
									ImageUrl="~/_layouts/images/MAGNIFY.GIF" />
					  <wssuc:ToolBarButton runat="server"
									Text="Configuration"
									id="idConfigurationNode"
									ToolTip="SLAM Configuration Pages"
									NavigateUrl="Configuration.aspx"
									AccessKey="C" 
									ImageUrl="~/_layouts/images/checkitems.gif"/>
					  <wssuc:ToolBarButton runat="server"
									Text="Activation"
									id="idActivationNode"
									ToolTip="SLAM Activation Pages"
									NavigateUrl="Activation.aspx"
									AccessKey="A" 
									ImageUrl="~/_layouts/images/IMPITEM.GIF" />
					</Template_Buttons>
				</wssuc:ToolBar>
			</td>
		</tr>
		<tr>
			<td style="padding-left: 6px">
				<div id="welcomeMessage" runat="server" style="width: 700px;">
					<h2 style="font-size: 16.8px; margin: 13px 0px">Welcome to the SLAM Control Panel!</h2>
					<p style="padding-bottom: 16px; margin: 11px 0px 0px 0px">
						From here you are able to view latest Diagnostics, Validate your configuration or perform Activation.
					</p>
					<ul style="margin: 0px 0px 11px 15px; padding: 0px 0px 5px 0px; list-style:none;">
						<li style="padding-bottom: 6px"><span style="font-weight:bold;">Diagnostics</span> shows the latest messages, errors and events logged by SLAM, which is very useful to perform debugging if something doesn't look right.</li>
						<li style="padding-bottom: 6px"><span style="font-weight:bold;">Configuration</span> allows you to check the slam.config file against the lists available in SharePoint, assisting you in properly setting up your slam.config.</li>
						<li style="padding-bottom: 6px"><span style="font-weight:bold;">Activation</span> lets you attach the SLAM event handlers (or re-attach them - necessary if you want SLAM attached to new lists) as well as perform a bulk data-load from your SharePoint instance into the SLAM database. The data-load step is useful if you already have data in the SharePoint lists before SLAM is set up, as that information would otherwise not be SLAMed.</li>
					</ul>
					<p style="padding-bottom: 5px; margin: 11px 0px;">
						For more information on setting up SLAM, see our Illustrated guide to SLAM <a target="_blank" href="http://www.codeplex.com/SLAM/Wiki/View.aspx?title=Getting%20Started">here</a>.
					</p>
					<p style="padding-bottom: 5px; margin: 11px 0px;">
						Loving SLAM? Having issues with SLAM? Want to suggest a new feature? Drop us a line at <a href="mailto:slam@awsystems.com">slam@awsystems.com</a>
					</p>
				</div>
				<div id="installationMessage" runat="server" style="width: 700px;" visible="false">
					<h2 style="font-size: 16.8px; margin: 13px 0px">Welcome to the SLAM Control Panel!</h2>
					<p>
						I see that you’ve just installed SLAM. Congratulations!  
						You’re going to want to start by placing the slam.dummy.config from the /resource directory into the root of the SharePoint virtual directory.  
						Rename it slam.config and fill it out appropriately.<br /><br />
						Alternatively you can rename it anything you want, move it anywhere you want and add the appSetting ""Slam.ConfigurationManager.Config"" to your web.config with the value of a physical location for that SLAM XML configuration file.
					</p>
					<p style="color: Red;">
						<asp:Literal ID="ltConfigPath" runat="server"></asp:Literal>
					</p>
				</div>
				<div id="errorMessage" runat="server" style="width: 700px;" visible="false">
					<h2 style="font-size: 16.8px; margin: 13px 0px">Welcome to the SLAM Control Panel!</h2>
					<p>
						SLAM has encountered the following error:
						<br /><br />
						<asp:Literal ID="ltErrorMessage" runat="server"></asp:Literal>
					</p>
				</div>
				<div style="width: 700px; margin-top: 45px; font-size: 10px;">
				  <hr />
				  <asp:Literal ID="ltVersion" runat="server"></asp:Literal>
				</div>
			</td>
		</tr>
	</table>
	<SharePoint:FormDigest ID="spFormDigestControl" runat="server" />
</asp:Content>
